/**
 * Created by CodeTlan.
 * User: hellreuter
 * Date: 3/31/12
 * Time: 8:44 PM
 */
Ext.define('CT.view.consulta.infoGrid',{
    extend: 'Ext.view.View',
    alias: 'widget.infogridconsulta',
    store: 'ConsultasInfos',
    initComponent:function () {
        var textTpl = new Ext.XTemplate(
            '<div style="text-align:left; font-size:13px; padding:5px; background-color: #FFFFFF; overflow: hidden;">',
            '       <tpl for=".">',
            '           <div style="float:left; width:35%;">',
            '               <div>Nombre: {nombre}</div>',
            '               <div>Ficha: {ficha}</div>',
            '           </div>',
            '           <div style="float:left; width:35%;">',
            '               <div>Delegado: {delegado}</div>',
            '               <div>Secretario: {secretario}</div>',
            '           </div>',
            '           <div style="float:left; width:30%;">',
            '               <div>Contratos: {ficha} dia(s)</div>',
            '               <div>Militancias: {totalmilitancias} dia(s)</div>',
            '           </div>',
            '       </tpl>',
            '</div>'
        );
        Ext.apply(this, {
            tpl:textTpl,
            itemSelector:'div.select-me'
        });
        this.callParent(arguments);
    }
});